using UnityEngine;

public class FreedomDetected : MonoBehaviour
{
	private GameObject buyItems;

	private UILabel uiLabel;

	private void Start()
	{
		buyItems = base.transform.parent.Find("BuyItem").gameObject;
		uiLabel = GetComponent<UILabel>();
		uiLabel.enabled = false;
	}

	private void Update()
	{
		if (Application.platform == RuntimePlatform.Android)
		{
			buyItems.SetActive(!LicenseChecker.CheckHostsTampering());
			uiLabel.enabled = LicenseChecker.CheckHostsTampering();
		}
		if (Application.platform == RuntimePlatform.IPhonePlayer)
		{
			buyItems.SetActive(!LicenseChecker.CheckIosCrackersInstalled());
			uiLabel.enabled = LicenseChecker.CheckIosCrackersInstalled();
		}
	}
}
